package com.atguigu.exam.service;

import com.atguigu.exam.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface CategoryService extends IService<Category> {


    List<Category> getCategoriesWithCount();


    List<Category> getCategoryTree();

    /**
     * 保存分类
     * @param category
     */
    void saveCategory(Category category);

    /**
     * 修改分类
     * @param category
     */
    void updateCategoryById(Category category);

    /**
     * 删除分类
     * @param id
     */
    void deleteCategoryById(Long id);
}